/*******************************************************************************
 * Copyright (c) 2010 Torkild U. Resheim
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Torkild U. Resheim - initial API and implementation
 *******************************************************************************/
package no.resheim.buildmonitor.ui.preferences;

import no.resheim.buildmonitor.ui.BuildmonitorUI;

import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;

public class BuildmonitorPreferencePage extends FieldEditorPreferencePage
		implements IWorkbenchPreferencePage {

	public BuildmonitorPreferencePage() {
		super(GRID);
		setPreferenceStore(BuildmonitorUI.getDefault().getPreferenceStore());
		setDescription("General Buildmonitor preference settings:");
	}

	@Override
	public void createFieldEditors() {
		addField(new BooleanFieldEditor(
				PreferenceConstants.P_IGNORE_DEACTIVATE_JOBS,
				"&Hide deactivated jobs", getFieldEditorParent()));
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
	 */
	public void init(IWorkbench workbench) {
	}

}